function FirstClassDecorator(TargetClass: typeof CustomerDecorator) {
  const res = new TargetClass();
  res.buy();
  console.log(res.name);
}

/**
 * 不带参数的装饰器
 */
@FirstClassDecorator
class CustomerDecorator {
  name: string = '下单';
  constructor() {}
  buy() {
    console.log(this.name, '购买');
  }
  placeOreder() {
    console.log(this.name, '下单购买');
  }
}

export {};
